/**
 * Created by Administrator on 2017/6/9.
 */
import {fetch} from 'api/fetch';

// 获取订单列表
export const callOrderList = (currentPage, orderProcessStatus = "", searchKey = "", pageRow = 5) => {
  return fetch({
    url: '/api/worker/order/list',
    method: 'post',
    data: {
      currentPage,
      orderProcessStatus,
      searchKey,
      pageRow
    }
  })
}
// 获取订单详情
export const callOrderDetail = (orderNo) => {
  return fetch({
    url: '/api/worker/order/detail',
    method: 'post',
    data: {
      orderNo
    }
  })
}
// 订单.按需求分配医生等信息(生成订单并保存)
export const callOrderSeekAdd = (client) => {
  return fetch({
    url: '/api/worker/order/seek/add',
    method: 'post',
    data: {
      ...client
    }
  })
}
// 订单.按需求保存并发送订单(生成订单并发送)
export const callOrderSeekSend = (client) => {
  return fetch({
    url: '/api/worker/order/seek/send',
    method: 'post',
    data: {
        ...client
    }
  })
}
// 订单.无需求创建订单(保存订单)
export const callOrderEmptyCreate = (client) => {
  return fetch({
    url: '/api/worker/order/empty/create',
    method: 'post',
    data: {
        ...client
    }
  })
}
// 订单.无需求创建订单(发送订单)
export const callOrderEmptySend = (client) => {
  return fetch({
    url: '/api/worker/order/empty/send',
    method: 'post',
    data: {
        ...client
    }
  })
}
//订单.删除订单
export const callOrderSeekDel = (client) => {
  return fetch({
    url: '/api/worker/order/seek/del',
    method: 'post',
    data: {
      ...client
    }
  })
}
//历史病例详情
export const callOrderEhrDetail = (ehrId) => {
  return fetch({
    url: '/api/worker/order/ehr/detail',
    method: 'post',
    data: {
      ehrId
    }
  })
}

